package StudyCode.summary.myfile;

import java.io.IOException;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class CreateDirectoryUsingFilesCreateDirectory {
	public static void main(String[] args) {
		Path newDirectory = FileSystems.getDefault().getPath("E:\\Copy");

		try {
			Files.createDirectory(newDirectory);
			System.out.println(newDirectory + " 创建成功。");
		} catch (IOException e) {
			System.err.println(e);
		}

	}
}
